<?php
///**
// * Implements hook_rules_event_info().
// */
//function shusy_errand_rules_event_info() {
//  return [
//    'common_rules_event_user_is_new' => [
//      'label' => t('首次登陆'),
//      'group' => t('Common'),
//      'variables' => [
//        'user' => [
//          'type' => 'user',
//          'label' => t('用户'),
//        ],
//      ],
//    ],
//  ];
//}

/**
 * Implements hook_rules_condition_info().
 */
function shusy_errand_rules_condition_info() {
  return [
    'shusy_errand_rules_condition_order' => [
      'label' => t('Shusy Errand 检查是否是快达订单'),
      'parameter' => [
        'order' => ['type' => 'shusy_store_order', 'label' => t('订单')],
      ],
      'group' => t('Shusy Errand'),
    ],
  ];
}


/**
 * Implements hook_rules_action_info().
 */
function shusy_errand_rules_action_info() {
  return [
    'shusy_errand_rules_action_order' => [
      'label' => t('Shusy Errand 记录快达订单'),
      'parameter' => [
        'order' => ['type' => 'shusy_store_order', 'label' => t('订单')],
      ],
      'group' => t('Shusy Errand'),
    ],
  ];
}
